<%@page import="controllers.RatingNomConnect"%>
<%@page import="models.RatingNom"%>
<%@ page import="java.util.List,java.text.*"%>
<%@ page import="java.util.List, java.util.HashMap" %>


<!-- content -->
<!--<a id="mainContent" name="mainContent"/>-->
<div id="lotusContent">


<%


        String useremail = (String) pageContext.getAttribute("USER_EMAILID", PageContext.PAGE_SCOPE);
        RatingNomConnect NOM = new  RatingNomConnect();
        List<HashMap<String,Object>> rs = NOM.getQuery("ratedBY", useremail);   
        
%>




        <link href="/media/dataTables/demo_page.css" rel="stylesheet" type="text/css" />
        <link href="/media/dataTables/demo_table.css" rel="stylesheet" type="text/css" />
        <link href="/media/dataTables/demo_table_jui.css" rel="stylesheet" type="text/css" />
        <link href="/media/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" media="all" />
        <link href="/media/themes/smoothness/jquery-ui-1.7.2.custom.css" rel="stylesheet" type="text/css" media="all" />
        <script src="/scripts/jquery.js" type="text/javascript"></script>
        <script src="/scripts/jquery.dataTables.min.js" type="text/javascript"></script>
        <script type="text/javascript">
        $(document).ready(function () {
            $("#mynomination").dataTable({
                "sPaginationType": "full_numbers",
                "bJQueryUI": true
            });           
            
        });
        
        $(document).ready(function () {
            $("#mynominationhistory").dataTable({
                "sPaginationType": "full_numbers",
                "bJQueryUI": true
            });           
            
        });
        

        function hideView() { 
             if (document.getElementById) { 
             document.getElementById('view').style.visibility = 'hidden'; 
             } 
        } 
       </script>

 

<div id="dt_example">
    <div id="container">
        <div id="demo_jui">
      <h1><b>My Nominations - <%=pageContext.getAttribute("USER_FULLNAME", PageContext.PAGE_SCOPE) %></b></h1>  
    <table cellpadding="0" cellspacing="0" border="0" class="display" id="mynomination" onload="javascript:hideView()">
          <thead>
              <tr>
                        <th>SolutionID</th>
                        <th>SolutionTitle</th>
                        <th>Site</th>
                        <th>Customer</th>
                        <th>Month</th>
                        <th>Year</th>   
              </tr>
          </thead>
          <tbody>
            <% for(int i = 0 ; i < rs.size() ;i++){%>
          <tr>
            <td><a href="/modules/default/display-solution.jsp?sol_id=<%=rs.get(i).get("SolID")%>"><%=rs.get(i).get("SolCode")%></a></td>
            <td><%=rs.get(i).get("Title")%></td>
            <td><%=rs.get(i).get("Location")%></td>
            <td><%=rs.get(i).get("Customer")%></td>
            <td><%=rs.get(i).get("Month")%></td>
            <td><%=rs.get(i).get("Year")%></td>
           
          </tr>
        <% } %>
          </tbody>
      </table>
      </div>
    </div>
</div>




<%

        RatingNomConnect oNOM = new  RatingNomConnect();
        List<HashMap<String,Object>> rs1 = oNOM.getQueryHistory("ratedBY", useremail);      
        
%>


<div id="dt_example">
    <div id="container">
        <div id="demo_jui">
      <h1><b>Your Previous Selected Nominations (History) - <%=pageContext.getAttribute("USER_FULLNAME", PageContext.PAGE_SCOPE) %></b></h1>    
    <table cellpadding="0" cellspacing="0" border="0" class="display" id="mynominationhistory" onload="javascript:hideView()">
          <thead>
              <tr>
                        <th>SolutionID</th>
                        <th>SolutionTitle</th>
                        <th>Site</th>
                        <th>Customer</th>
                        <th>Month</th>
                        <th>Year</th>   
              </tr>
          </thead>
          <tbody>
            <% for(int i = 0 ; i < rs1.size() ;i++){%>
          <tr>
            <td><a href="/modules/default/display-solution.jsp?sol_id=<%=rs1.get(i).get("SolID")%>"><%=rs1.get(i).get("SolCode")%></a></td>
            <td><%=rs1.get(i).get("Title")%></td>
            <td><%=rs1.get(i).get("Location")%></td>
            <td><%=rs1.get(i).get("Customer")%></td>
            <td><%=rs1.get(i).get("Month")%></td>
            <td><%=rs1.get(i).get("Year")%></td>
           
          </tr>
        <% } %>
          </tbody>
      </table>
      </div>
    </div>
</div>

<!--End of Lotus Content-->
</div>

<!--End of Lotus Main-->
</div>
<!-- Footer gets moved to within Frame div in weblog.vm so closing tags need to go in weblog.vm - MTodd November 1 2007 </body> </html> -->
</div>
</div>
<input name="Remote_User" type="hidden" value="CN=Wai Tat See/OU=SG/OU=Asia/O=Celestica">
<input name="SaveOptions" type="hidden" value="0">
<input name="HTTP_Cookie" type="hidden" value="redirectto=/global/collaboration/SavvySol.nsf/frmsavvy%3FOpenForm%26login; LtpaToken=ZDKFFoPfuAGbPyVskMUDPgxWENdj6diTwzdqpeE75D7FBQstuBp54bmVG+1NUJgipQeljrUEAnGe8B8Hy4xO6Ip1B52UiBE2D38M/XtiBuuR1VTHf9sxTVPakjCO9kRh+u37exCde0HW4anckpDjCjBca3xmtNzAztKf7ZrCju09loEt1Bbj4tXt3D3Jwfgtr7mnXY7p99bsDfsdzGSxIGE0B5FexyBHR/02R0sCOp7AvkieyyEV4PETctlJwZT8Ll6bckcIDlUK80b0FuGcQHsOp/aCxwhm6H6EjZNBuiuuBsLGX6COlAyNIofKNnjmdvfdhh6/RrWFw9ttyxMbKs33t1bWwTIdLBpGwcEg748=">
<input name="Query_String_Decoded" type="hidden" value="OpenForm&amp;login">
<input name="Query_String" type="hidden" value="OpenForm&amp;login">
<input name="dbName" type="hidden" value="global/collaboration/SavvySol.nsf">
<input name="Position" type="hidden" value="">
<input name="curUsername" type="hidden" value="CN=Wai Tat See/OU=SG/OU=Asia/O=Celestica">
<input name="QuickSearch" type="hidden" value="0">
<input name="UserProfileInfo" type="hidden" value="">
<input name="txtProfileUNID" type="hidden" value="">